
# 全局配置认证类
class MyAuthentication(object):
    pass
#     def authenticate(self, request):
#         token = request._request.GET.get('token')
#         if token and (token in tokens):
#             # return ('ok', None)
#             return (tokens['token'], None)
#         else:
#             raise exceptions.AuthenticationFailed('用户认证失败哦')
#
#     def authenticate_header(self, v):
#         pass
